negotiator
Class PausableContinuousTimeline

java.lang.Object
  extended by negotiator.Timeline
      extended by negotiator.ContinuousTimeline
          extended by negotiator.PausableContinuousTimeline

public class PausableContinuousTimeline
extends ContinuousTimeline


Nested Class Summary
 
Nested classes/interfaces inherited from class negotiator.Timeline
Timeline.Type
 
Field Summary
 
Fields inherited from class negotiator.ContinuousTimeline
startTime
 
Fields inherited from class negotiator.Timeline
hasDeadline, paused
 
Constructor Summary
PausableContinuousTimeline(int totalSecs)
           
 
Method Summary
 double getElapsedMilliSeconds()
          Gets the elapsed time in seconds.
 double getElapsedSeconds()
          Gets the elapsed time in seconds.
static void main(java.lang.String[] args)
           
 void pause()
          Method used to pause the timeline.
 void resume()
          Method used to resume the timeline.
 
Methods inherited from class negotiator.ContinuousTimeline
getCurrentTime, getTime, getTotalMiliseconds, getTotalSeconds, getTotalTime, printElapsedSeconds, printTime
 
Methods inherited from class negotiator.Timeline
getType, isDeadlineReached, isPaused
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PausableContinuousTimeline

public PausableContinuousTimeline(int totalSecs)
Method Detail

getElapsedSeconds

public double getElapsedSeconds()
Gets the elapsed time in seconds. Use ContinuousTimeline.getTime() for a more generic version.

Overrides:
getElapsedSeconds in class ContinuousTimeline

getElapsedMilliSeconds

public double getElapsedMilliSeconds()
Gets the elapsed time in seconds. Use ContinuousTimeline.getTime() for a more generic version.

Overrides:
getElapsedMilliSeconds in class ContinuousTimeline

main

public static void main(java.lang.String[] args)

pause

public void pause()
Description copied from class: Timeline
Method used to pause the timeline. This method is only available if it is enabled in the Global.

Overrides:
pause in class Timeline

resume

public void resume()
Description copied from class: Timeline
Method used to resume the timeline. This method is only available if it is enabled in the Global.

Overrides:
resume in class Timeline